import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		token: ''
	},
	mutations: {
		setToken(state, token) {
			state.token = token;
		},
		removeToken(state) {
			state.token = '';
		},
	},
	actions: {

	}
})

export default store